<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript" src="jquery.js"></script>
<!--<script>
	$(document).ready(function(){
		$("#clicked").click(function(){		
		json=$("#jsn").html();
			$.ajax({
				type:"get",
				url:"process.php",
				data:"json="+json,
				async:true,
				sucess:function(kq){
					$("#ketqua").html(kq);
				}
			})
		})
	})
</script> -->
<title>Untitled Document</title>
</head>

<body>

<?php
	$con=mysql_connect("sql307.freevnn.com",'freev_11941239','khoaluan');
	mysql_select_db("freev_11941239_kfc",$con);	
	mysql_set_charset('utf8',$con);
	$sql="select * from menu";
	$query=mysql_query($sql);
	while($data=mysql_fetch_assoc($query)){
		$info[]=array('name'=>"$data[name]",
					 'image'=>"$data[image]",
					 'price'=>"$data[price]"		
					);
		
		//$a[]=json_encode($info);			
		//$menu[]=$data;
	}
	print (json_encode($info));


//$b=implode("",$a);
//echo json_encode($menu);
//echo phpinfo();
/*$a="{'name':'C\u00e1nh g\u00e0 chi\u00ean b\u01a1','image':'wing.jpg','price':'25000'}{'name':'\u0110\u00f9i g\u00e0','image':'1292358458-fried-chicken.jpg','price':'50000'}{'name':'Hamberger','image':'hamburger.jpg','price':'32000'}{'name':'asdad','image:'','price':'514'}{'name':'fefefef','image':'','price':'8979878'}"*/
?>

</body>
</html>

